﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Mt.Site.Application.Dto
{
    public class NewSortNumberWithMenuIdInput : NewSortNumberInput
    {
        public long MenuId { get; set; }
        public Guid? RelateId { get; set; }
    }

    public class NewSortNumberInput : NewSortNumberInput<Guid>
    {
    }

    public class NewSortNumberInput<TPrimaryKey> where TPrimaryKey : struct, IComparable
    {
        [Required]
        public TPrimaryKey Id { get; set; }

        [Required]
        public int NewNumber { get; set; }
    }
}
